package org.wwb.antbox.user.model.user.model;

import org.ant.commons.models.model.AbstractAddModel;
import org.ant.mybatis.query.Query;
import org.wwb.antbox.user.model.user.entity.SysUser;

/**
 * @Author Bond
 * @Date: 19-9-5 11:18
 * @Description: 系统用户登录Model
 */
public class SysUserLoginModel extends AbstractAddModel<SysUser, String> {

    private static final long serialVersionUID = 6458457412070035083L;

    /** 登录账号, 数据库字段：login_name */
    private String loginName;

    /** 登录密码, 数据库字段：login_pwd */
    private String loginPwd;

    /**
     * 根据登录账号查询query
     * @return Query
     */
    public Query queryByLoginName(){
        Query query = new Query();
        query.eq("login_name",getLoginName());
        return query;
    }


    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }
}
